985b8b89bed9d82479803d6b693e9b2a71a0838d,platform-api/che-core-api-vfs/src/main/java/org/eclipse/che/api/vfs/server/impl/memory/MemoryVirtualFile.java,MemoryVirtualFile,createFile,#String#String#InputStream#,1194

Before Change


        if (!isFolder()) {
            throw new ForbiddenException("Unable create new file. Item specified as parent is not a folder. ");
        }
        if (!VirtualFileDefaults.isPathIgnored(getVirtualFilePath().newPath(name))) {
            // Don't check permissions when create file "misc.xml" in folder ".codenvy". Dirty huck :( but seems simplest solution for now.
            // Need to work with 'misc.xml' independently to user.
            if (!hasPermission(BasicPermissions.WRITE.value(), true)) {

After Change


        if (!isFolder()) {
            throw new ForbiddenException("Unable create new file. Item specified as parent is not a folder. ");
        }
        if (mountPoint.acceptPath(getVirtualFilePath().newPath(name))) {
            // Don't check permissions when create file "misc.xml" in folder ".codenvy". Dirty huck :( but seems simplest solution for now.
            // Need to work with 'misc.xml' independently to user.
            if (!hasPermission(BasicPermissions.WRITE.value(), true)) {